import React, { lazy } from "react";
const AdminManage = lazy(() => import("../views/adminManage"));
const AdminTypes = lazy(() => import("../views/adminTypes"));
const UserManage = lazy(() => import("../views/userManage"));
const RoleManage = lazy(() => import("../views/roleManage"));
const MenuManage = lazy(() => import("../views/menuManage"));
const MainLayout = lazy(() => import("../views/mainLayout"));
const RoutesChildren = [
  {
    path: "/userManage",
    element: <UserManage></UserManage>,
  },
  {
    path: "/roleManage",
    element: <RoleManage></RoleManage>,
  },
  {
    path: "/menuManage",
    element: <MenuManage></MenuManage>,
  },
];
export const ROUTER_LIST = [
  {
    path:"/",
    element:<MainLayout></MainLayout>
  },
  {
    path: "/adminManage",
    element: <AdminManage></AdminManage>,
    children: RoutesChildren,
  },
  {
    path: "/adminTypes",
    element: <AdminTypes></AdminTypes>,
  },
];
